<?php

namespace apiend\modules\attach\models;

use Yii;

/**
 * AlbumSearch represents the model behind the search form about [[\app\models\FanasocMemberApply]].
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class RecentPictureSearch extends PictureSearch {

    /**
     * Searching member apply
     * @param  array $params
     * @return \yii\data\ActiveDataProvider
     */
    public function buildQuery() {
        $query = parent::buildQuery();
        $query->orderBy([
            't.created_at' => SORT_DESC
        ]);
        $query->andFilterWhere([
            't.store_id' => $this->store_id
        ]);
        return $query;
    }

}
